package com.demostic.demostic_test.utils;

import android.annotation.TargetApi;
import android.content.Context;

public class LanguageUtils {
    @TargetApi(19)
    public static boolean isDe(Context context) {
        String language = context.getResources().getConfiguration().getLocales().get(0).getLanguage();
        if (language.endsWith("DE") || language.endsWith("de")) {
            return true;
        }
        return false;
    }

    public static boolean isZh(Context context) {
        return context.getResources().getConfiguration().locale.getLanguage().endsWith("zh");
    }
}
